<template>
  <web-view :src="url"></web-view>
</template>

<script setup>
import { getRequest } from '@/utils/request';
const url = ref('');

onLoad((options) => {
  if (options.url) {
    url.value = options.url;
    getRequest('app/wechatMini/click/show', { id: options.id })
      .then((res) => {
        console.log(res);
      })
      .catch((err) => {
        console.error(err);
      });
  }
});
</script>

<style></style>
